<?php


// This Class is for you. 
// Feel free to edit this file to extend your models classes.
// Please, never touch sufixed _protoweb classes
 
/**
 * 
 *
 * @Authors Viera Leonel, Gonzalez Federico
 * @package mailing
 * @subpackage model
 */
class User extends User_protoweb {

  public function __construct($id = NULL) {
    parent::__construct($id);
  }
	
  public function fullname() {
    return $this->lastname . " " . $this->firstname;
  }

  public function clients() {
    $clients = new Client();
    return ($clients->where_related_permission('user_id',$this->id)->get());
  }
} // class User

/* End of file user.php */
/* Location: ./system/application/models/user.php */